<?php
session_start();
if(isset($_SESSION['users'])) { 
include('header.php');
?>
        <h1>Add Artwork</h1>
        <p class="error"></p>
        <form name="addartform" id="addartform" action="controllers/add_works_controller.php" method="POST" enctype="multipart/form-data" >
	        <table>
	        	<tr>
	        		<td>Title<br/><input type="text" size="40" id="title" name="title"/></td>
	        	</tr>
	        	<tr>
	        		<td>Medium <br/><input type="text" size="40" id="medium" name="medium"/></td>
	        	</tr>
	        	<tr>
	        		<td>Dimension(ex. 2x2x2)<br/><input type="text" size="40" id="dim" name="dim"/></td>
	        	</tr> 
	        	<tr>
	        		<td>Upload Image<br/><input class="btn"  id="file[]" type="file" name="file[]"></td>
	        	</tr>
	        	<tr>
	        		<td>Upload Thumbnail Image<br/><input class="btn"  id="file[]" type="file" name="file[]"></td>
	        	</tr>
	        	<tr>
	       			
	        		<td>Description <br/>*If you want your description to look like a paragraph 
	        			please use &#60;br/&#62; twice to give your text spacing.<br/><textarea rows="20" cols="80" id="descript" name="descript"></textarea></td>
	        	</tr>
	        	<tr>
	        		<td><input class="btn" type="submit" value="Upload Image Data" onclick="return validate()"/></td>
	        	</tr>
	        </table>
        </form> 
<?php
include('footer.php');
} else {
	header("Location: login.php");
}
?>